﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="selectpca.aspx.cs" Inherits="selectpca" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>选择检验产品</title>
    <base target="_self" /> 
    <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <h1 id="pagetitle" class="pagetitle">
        选择检验产品
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="anistyle" id="ani">
                    正在加载数据，请耐心等待...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <script type="text/javascript">
        function SelectItem(obj)
        {
            window.returnValue=obj; 
            self.close();
        }
    </script>
     <div class="InfoArea">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
    
        <ContentTemplate>
            <asp:GridView ID="GridViewPCA" runat="server"  AutoGenerateColumns="False" Width="100%"
                        SkinID="gridviewSkin">
                         <Columns>
                             <asp:BoundField DataField="PCA_ID" HeaderText="编号" />
                             <asp:BoundField DataField="PName" HeaderText="产品名称" />
                             <asp:BoundField DataField="PModel" HeaderText="型号" />
                             <asp:BoundField DataField="PType" HeaderText="参数标识" />
                             <asp:BoundField DataField="Guide_Price" HeaderText="参考价格" />
                             <asp:BoundField DataField="Create_Time" DataFormatString="{0:d}" HeaderText="创建时间" />
                             <asp:BoundField DataFormatString="Rem" HeaderText="备注" />
                         <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <input id="Button1" type="button" value='选择' onclick="javascript:SelectItem('{\'PcaId\':\'<%# Eval("PCA_ID").ToString()%>\',\'Pname\':\'<%# Eval("PName").ToString()%>\',\'Pmodel\':\'<%# Eval("Pmodel").ToString()%>\',\'Ptype\':\'<%# Eval("Ptype").ToString()%>\',\'GuidePrice\':\'<%# Eval("Guide_Price").ToString()%>\',\'Rem\':\'<%# Eval("Rem").ToString()%>\'}');"/>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                            </asp:TemplateField>
                            </Columns>
            </asp:GridView>
               <webdiyer:AspNetPager ID="AspNetPager" runat="server" ShowCustomInfoSection="Left"
                        CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                        CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager_PageChanged"
                        PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                        TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
                    </webdiyer:AspNetPager>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
